﻿<Window x:Class="Save_Editor.Windows.winNewItem"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:c="clr-namespace:Save_Editor.Controls"
        Title="New Item" Height="327" Width="306" ResizeMode="CanMinimize" ShowInTaskbar="False" Topmost="True" WindowStartupLocation="CenterOwner">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="35" />
            <RowDefinition Height="254*" />
            <RowDefinition Height="29" />
        </Grid.RowDefinitions>
        <GroupBox Name="tabSupply" Header="Supply Item" Margin="390,0,-379,12" Grid.Row="1" Visibility="Hidden">
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="100" />
                    <ColumnDefinition Width="221*" />
                </Grid.ColumnDefinitions>
                <Label Content="Medicine Unit" Height="28" HorizontalAlignment="Right" Margin="0,6,6,0" VerticalAlignment="Top" />
                <Label Content="Food Unit" Height="28" HorizontalAlignment="Right" Margin="0,40,6,0" VerticalAlignment="Top" />
                <Label Content="Fuel Unit" Height="28" HorizontalAlignment="Right" Margin="0,74,6,0" VerticalAlignment="Top" />
                <TextBox Text="{Binding MedicineUnits, Converter={StaticResource appsTi}}" Height="23" HorizontalAlignment="Left" Margin="0,8,0,0" VerticalAlignment="Top" Width="100" Grid.Column="1" MaxLength="10" />
                <TextBox Text="{Binding FoodUnits, Converter={StaticResource appsTi}}" Height="23" HorizontalAlignment="Left" Margin="0,42,0,0" VerticalAlignment="Top" Width="100" Grid.Column="1" MaxLength="10" />
                <TextBox Text="{Binding FuelUnits, Converter={StaticResource appsTi}}" Height="23" HorizontalAlignment="Left" Margin="0,76,0,0" VerticalAlignment="Top" Width="100" Grid.Column="1" MaxLength="10" />
            </Grid>
        </GroupBox>
        <GroupBox Name="tabAmmo" Header="Ammo Box item" Margin="6,6,6,6" Grid.Row="1" Visibility="Hidden">
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="123" />
                    <ColumnDefinition Width="194" />
                </Grid.ColumnDefinitions>
                <Label Content="Number of Rounds" Height="28" HorizontalAlignment="Right" Margin="0,6,6,0" Name="label1" VerticalAlignment="Top" />
                <TextBox Text="{Binding NumRounds, Converter={StaticResource appsTi}}" Height="23" Margin="0,8,94,0" Name="textBox1" VerticalAlignment="Top" Grid.Column="1" MaxLength="10" />
            </Grid>
        </GroupBox>
        <GroupBox Name="tabGun" Header="Gun Item" Margin="-350,3,362,9" Grid.Row="1" Visibility="Hidden">
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="119" />
                    <ColumnDefinition Width="198" />
                </Grid.ColumnDefinitions>
                <Label Content="Number of Rounds" Height="28" HorizontalAlignment="Right" Margin="0,6,0,0" Name="label2" VerticalAlignment="Top" />
                <TextBox Height="23" Margin="0,6,98,0" MaxLength="10" Name="textBox2" Text="{Binding NumRounds, Converter={StaticResource appsTi}}" VerticalAlignment="Top" Grid.Column="1" />
                <ComboBox Text="{Binding LoadedAmmoClassName}" Height="23" Margin="0,40,63,0" Name="ammobox" VerticalAlignment="Top" Grid.Column="1" />
                <Label Content="Loaded Ammo" Height="28" HorizontalAlignment="Right" Margin="0,40,0,0" Name="label3" VerticalAlignment="Top" />
            </Grid>
        </GroupBox>
        <Button Content="_OK" Height="23" HorizontalAlignment="Right" Margin="0,0,87,6" Name="button1" VerticalAlignment="Bottom" Width="75" Grid.Row="2" Click="clickOK" />
        <Button Content="_Cancel" Grid.Row="2" Height="23" HorizontalAlignment="Right" Margin="0,0,6,6" Name="button2" VerticalAlignment="Bottom" Width="75" Click="clickCancel" />
        <ComboBox Margin="6,6,6,6" Name="cmbItems" SelectionChanged="cmbItems_SelectionChanged" Text="{Binding ItemClassName}"/>
    </Grid>
</Window>
